package com.ruoyi.commodity.domain;

import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class CommodityType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 商品类型id */
    private Long commodityTypeId;

    /** 商品类型 */
    private String commodityTypeName;

    /** 父类型id */
    private Long parentId;

    /** 祖级列表 */
    private String ancestors;

    /** 显示顺序 */
    private Integer orderNum;

    /** 商品类型状态（0正常 1停用） */
    private int status;

    private List<CommodityType> children = new ArrayList<CommodityType>();


    public List<CommodityType> getChildren()
    {
        return children;
    }

    public void setChildren(List<CommodityType> children)
    {
        this.children = children;
    }
}